﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SharpCmd.Controls.Viewers
{
    internal partial class ImageViewer : ViewerControl
    {
        private Image image;
        
        public ImageViewer()
        {
            InitializeComponent();
        }

        public override void Initialize()
        {
            image = Image.FromFile(FileName);
        }

        public override void Display()
        {
            pictureBox1.Image = image;
        }
    }
}